package cn.qn.enums;

/**
 * APP用户类型
 */
public enum AppUserScoreSourceEnum {

    CHECK_IN("1", "每日签到"),
    NORMAL_USER("2", "新人注册");

    private String code;

    private String desc;

    private AppUserScoreSourceEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDesc(String code) {
        for (AppUserScoreSourceEnum enums : AppUserScoreSourceEnum.values()) {
            if (enums.getCode().equals(code)) {
                return enums.getDesc();
            }
        }
        return "其他";
    }
}
